package biz.microplus.information.bean;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;

/**
 * 竞拍活动数据模型
 */
@Entity
public class AuctionBean extends BaseBean {
    // 待审核
    public static final String STATUS_REVIEW_NONE = "0";
    // 审核通过
    public static final String STATUS_REVIEW_PASS = "1";
    // 驳回
    public static final String STATUS_REVIEW_REJECT = "2";

    // 筹备
    public static final String STATUS_DRAFT = "0";
    // 开始竞拍
    public static final String STATUS_PUBLISHED = "1";
    // 结束竞拍
    public static final String STATUS_DISABLED = "2";
    // 违规删除
    public static final String STATUS_VIOLATION = "3";
    /**
     * 标识
     */
    @Id
    private int id;
    /**
     * 操作人ID
     */
    private int userId;
    /**
     * 所属企业ID
     */
    private int enterpriseId;
    /**
     * 竞拍标题
     */
    private String title;
    /**
     * 竞拍缩略图
     */
    private String thumbnail;
    /**
     * 简述
     */
    private String summary;
    /**
     * 竞拍详情
     */
    private String body;
    /**
     * 标的物描述
     */
    private String introduction;
    /**
     * 产品规格
     */
    private String spec;
    /**
     * 竞拍状态
     */
    private String status;

    /**
     * 审核状态
     */
    private String statusReview;
    /**
     * 起拍价
     */
    private BigDecimal beginAmount;
    /**
     * 加价幅度
     */
    private BigDecimal stepAmount;
    /**
     * 当前价格
     */
    private BigDecimal amount;
    /**
     * 延时周期(秒)
     */
    private int delayCycle;
    /**
     * 参与竞拍所需缴纳的订金
     */
    private BigDecimal deposit;
    /**
     * 竞拍排序值
     */
    private int sort;
    /**
     * 竞拍开始时间戳
     */
    private int beginAt;
    /**
     * 竞拍结束时间戳
     */
    private int endAt;
    /**
     * 删除时间戳
     */
    private int deletedAt;
    /**
     * 创建时间戳
     */
    private int createdAt;
    /**
     * 更新时间戳
     */
    private int updatedAt;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getEnterpriseId() {
        return enterpriseId;
    }

    public void setEnterpriseId(int enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getThumbnail() {
        return thumbnail;
    }

    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public BigDecimal getBeginAmount() {
        return beginAmount;
    }

    public void setBeginAmount(BigDecimal beginAmount) {
        this.beginAmount = beginAmount;
    }

    public BigDecimal getStepAmount() {
        return stepAmount;
    }

    public void setStepAmount(BigDecimal stepAmount) {
        this.stepAmount = stepAmount;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public int getDelayCycle() {
        return delayCycle;
    }

    public void setDelayCycle(int delayCycle) {
        this.delayCycle = delayCycle;
    }

    public BigDecimal getDeposit() {
        return deposit;
    }

    public void setDeposit(BigDecimal deposit) {
        this.deposit = deposit;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public int getBeginAt() {
        return beginAt;
    }

    public void setBeginAt(int beginAt) {
        this.beginAt = beginAt;
    }

    public int getEndAt() {
        return endAt;
    }

    public void setEndAt(int endAt) {
        this.endAt = endAt;
    }

    public int getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(int deletedAt) {
        this.deletedAt = deletedAt;
    }

    public int getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(int createdAt) {
        this.createdAt = createdAt;
    }

    public int getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(int updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getStatusReview() {
        return statusReview;
    }

    public void setStatusReview(String statusReview) {
        this.statusReview = statusReview;
    }
}